package com.company.abstractfactory;


public class Main {
    public static void main(String[] args) {
//        Car c = new Car();
//        c.go();
//        AK47 a = new AK47();
//        a.shoot();
//        Bread b = new Bread();
//        b.printName();
        AbastractFactory f = new ModernFactory();
        Vehicle c = f.createVehicle();
        c.go();
        Food fd = f.creatFood();
        Weapon w = f.createWeapon();

    }
}
